save before compile