improve get() error handling