curl calling without args gives undefined var. Made it work too..