envelope - separated out refresh method
envelope refactoring and cleanup