moved message to base

added message type