added refs and indexes to schema