improve get() error handling
Merge pull request #4 from timheil/errorhandling

improve get() error handling