997 limit cart

Partially resolves #997