rev update
reorganise a few included functions - notably identity related functions