start standarizing options and headers processing