updated for firefox path support