fix for case where location is not specifed