another try at return codes