ion to the county commissioners, or the department, and of the hearing before said commission; and it may apportion all such charges, expenses and costs between the railroad corporation, the railway company having tracks on said way, and the counties, cities or towns where said crossing is situated and other cities and towns which may be specially benefited; provided, that the parties in interest