updated for bash