added handling for objects being passed to scope