safe-guard against broken input data