added write & connectr