add cors, change print scripts to take region