refactor parse cababilities