add dependencies, rewrite and crossdomain hints