moved DSSSL-defined functions to the end, debug version seem to depend on definition order