before compile