refactor for clarity - clarify between mesos state and gen-server state