add compile begin and end markers