removed require from lsap.js because of scope issue, we should fix this.