added REMenu and other things