some changes
added assetsDir param