started to implement main script