post and ssl improvements