add Object and Error
fix syntax and add stat module