fixes for jslint