pouchtovar : can specify replication direction
fix bug when no general variable is set