add some basic code manage