moved get-source and del-source to script