adding protocol check to api

Signed-off-by: Jason Myers <jason@jasonamyers.com>
adding protocol check to api

Signed-off-by: Jason Myers <jason@jasonamyers.com>