fixed plugin discovery