fix log algorith
first draft tasks support