midway through tring to make callbacks work on interface.js