add each & nargs functions to functions module