script basic working