re-work, so it works properly with no ttls