implemented password helpers and fixed external script support