removes old implementation of functions and introduces a cleaner implementation of data sent to the server