many fixes
rename frame to nframes