add usage, configurable file extension priority