refactored tasks interface and application