added :max_checkout_length to EM controller