added BIDIRECTIONALCOOC flag (default true)