afl parsing function implementation