removed -s from curl and allow to print into console