handle status return value