fixed a bug where service could not be recognized correctly by uuid
refactoring of some constants