fix 'pop on reference' warning
remove globbing from main script (done by shell)