adding some files from Ming