fixed a bug
added scripts