replaced bool parser