removed older method and added in https flag