added new function to grunt and package