added messages to stdout for debugging