add in-memory functions