update to modern current_schemas function