get rid of slow sscanf