renew project file, fix nasty environment bugs