rename filename variables. fix referer