remove uncessary code from licserver/index.js; error handling