work with no script. fixed #11