export not working