simple version of static parser