finish base code

Change-Id: Id29655802667ac7411d7996667109d0e4595a6f5