hug.js added, fixes