fix nil error
add specs on remote and https