Changes to refsim
del to prep for merge