parsing raw references