added inbrowser support