added "-r" for install