add memcpy and memset within config