fixed to make shell scripts work