draft libear compilation