bug fixes

read temp function now works