fixed typos
fixed type save
fixed smart content bug
implemented deferred header