magpie's modified version of Snoopy class