added internet permission and got rid of enum and json.java