more null checks && better time check
move util
fancy messages part 1
fix