added code, working through sorcery errors. this is some hocuspocus bs