added -a option