added grid option, found obj layer bug