- removed callback complexity
- rectified dsi.js to include necessary callbacks and other functions