a little better code and .sh's fixed