renamed task method to internal_task