some code cleanup, allowed task settings to be null