removed nodestatic and used connect