More console logging and fix http to https