first working version of auto call