define macros for keys
use fprintf on stderr