updated anchor handler with typdedefs for operation mode and activity modes
revise various bits and pieces to reflect this change