fixed bug in r4
added gateway to ws1
made corrections