modified bond analyze + added a script