fix some bugs, change gulp settings