Export import

frontend part
It's not very clean to have this within the constructor.