added cws redirect