refactor files to test ssl.