improve get_id for backend