adds funtions to handle task id and free task