handle case where FLATE is defined before the KURVE it consists of
cleanup code a bit
rebuild