changed some critical project settings, changed inProduction flags,  moved some code