added a warning to not run it under root
catch bind errors
style fix
deal with js-yaml warning
reorganize tests, and add new ones