minor changes
catch all exceptions during decoding
null check