hop task creation refactoring