move dsl methods to dsl file