develop script
cleanup and binds
Add fetching start and end