bug fixes, added polytable directive