Added RUN= keyword for local parameters

additional changes: some error handling routines