stopped flow when an invalid api recognized