do bash-specific stuff in separate script