make task management methods thread safe