added print compatibility (maybe)