updated again for firefox path support