rough draft. not quite working yet
working