successfuly implemented event dispatch and file watching