porting serial and memory