got spec working by exporting more stuff