default shell is bash, fixed refactoring bugs