made getObjectReferences static
big refactor