ticket:2. various checks to handle null-values