more precise file urls, remove excess function