don't get pick about modules
extra bind
added missing return statements
fix pad function so it works in browser
add layers back