require lib inside the registerTask