it works, but it ain't pretty