asyncshell: small code and formatting fixes
helpers: some refactorings