added IHashids interface to improve testability