added tile parsing