use dev=0 instead of dev=-1