just modified apejs to pass also config along