added param to run as script