Making it work on appfog