updating the scripts and fixing things