moved machine module inside card class