infer spec types from file location