monitor and sync scripts
monitor script almost done