added user agent support
added phantom script