add correct offset layer support