added support for manual tiling