add lastsemic:true and AMD support