more magic, less undefined