+ some flask helpers