in mem gateway, timeout and subscription

for testing
foxes #1470