random fixes and add phpexcel support