change opt_prefix to prefix