added exports, creating routes programatically