use a glob to include exec.sh, also some refactoring