how to check module return codes?