dynamic task factory with dynamic task loading and constructor detection