working.  reference creations currently commented out for debug