check attribute existence
use util.inspect for formatting