making this service more useful - adding some common functions
removing functions that now live inside the application service - also removing unused variables