got return codes workign as expected