added getcodes crs call