messages implemented, minor fixes