add code and tests for setting of myorigin