wrap before compile