added EXIT_OPT_ERR constant