different approach with loadDependencies()
small tweaks
remove browser() call