updated routines.js and public