added parser for selection blocks