misc modifications in aquila-server.js