almost done. flags added and one script written