init cardroid code