read file directly in because of some weird cross domain issue