add scoped_ptr
remove wrong file