minor refactoring - introduce presence status codes