get rid of redundant context manager