some shell fixes