implemented reference object handling to allow for reference meta data