can now get template and static dirs from flask app