ported DurableImpl and AppFactory