simplify emit
fix
File#size is not defined in 1.8, fix problem with method arguments on 1.8 (Ruby 1.8 bug)