added timer; temporarily changed TTL calculate to test timer; problem contacting large TTLs
minor changes