added importscripts, change schema