improvement on the grunt task register and add options