added automagic