add agread extra parameter

seems the parameter was always defined in prototype, just compiler was
not that picky about that