added methods for reading ids