minor changes f. near mode

added a nearmode flag for easier replacement when switching between
developing & testing
yay