context will be better off as an anonymous struct
use strtok_r instead of strtok
(just in case)