add demo link
a little rewrite of autoroll function