may be the most hacky thing I've ever done