add pattern kwarg to unshorten