syntax error
simplified curl
add realpath