fixed a bug
added snap script