tweaking script for URL attributes