adding support for processing function and memory default