revamped update_curr, implemented task_tick and other minor changes