replace functions that may come in handy c/o @jcrisp