updated path dirname + static