some cleanup in tasks route module