pope julius had employed him as a military engineer and he was tinkering with a host of new projects , though he sometimes pined for his beloved milan , still in french hands , and talked in his more depressed moments of going to amboise , where he had been offered all the facilities he needed whenever he wanted them .