autoDeck first working version