add crossdomain.xml
refactor factory method
refactor to support muitle days.