script for community and location