cleaning up code for appfog