added object get code and surrounding infra