added support for autodetection of capabilities