rough implementation of task saving