fixes for references