bugfix: epoch detection