added MajorIdiot's scanfw source