can consider throw exception here (or at least log SEVERE) for sanity check