maybe we should throw an exception here (same for all the other places)?