added check for non-http resources