update bash scripts and cleanup