task saving is now working with proper timing