add assertion to catch wrong format more easily (#254)