refactoring task service spec and implementation
updating and removing files