remove dev null and add log level per cli