added grid decoder for mobile apps