log returned messages
refactor table