fixed reading from istream and enabled it for physical