adds pathlib support