make context and arguments be passed through thunk