move main filename; check for callback before calling