refactor: atable script