added multi threading so i can run watch and server at the same time