added script based on ants registration