moved admin context from function call to it's own object to be passed around inside spawn method