moved convert lead method to server.