if not, I might just make a tiny library that does that