better input params handling, correct return code