added additional key of partialMode to use in invoked function because it is evaled during runtime so we lose the context of the initial function