mode community definition to a seperate file