reworked some c flags