add timeout setting and memory setting