add -a option to info
fixed the script error at the beginning