removed sscanf dependency