outsourcing of riccati solver