liberal about flags and fix global install bug