lol actually implement -flags, load patches for tests