restructure operator fns
move contexts into its own file
lookup functions on the controller