almost ready for static export