local tasks refactored