FIXED when sending actions with no cookie server would crash. Still needed to refine the code