cleaned up the tools.js