general wrangling of routines around