added method chaining and open/close method
-
fix merge conflicts