added capability parsing to new parser