Temporary fix so we can use it with curl