added flags to parser