seperate opt parsing function in different file