added capability check