fixing task loading and validation