ignore boundary if not found, exported more util functions