implement plugin API version compatibility check