Fixed autodeploy issue and removed some temp code