implemented detectFeatures API call. untested