make the xcf check a bit more readable