clean up thunk prototype