more work done on stack.js