added --drop empty option