refatored cleanup.sh