fix travis and export bugs