updating to access apiSchema