added base wrapper script functionality