fix bug where data was not being sent to the server, deleted uneccessary files