catch null pointer, favor openapi over apache, set colabdir.