added linear_system to api