added signal handlers
fixed regexps in urls