first attempt at a global callback setup