preference file reading -- not fully implemented