add dependency for nopt
fixed customFlags method with nopt