make linref optional as in alpstein api
name cut file after poly
name cut file after poly (but do not include .poly)