binary getObject refactor