fixed arg processing
improving ubuntu support