added preventRedirections property