added ws API