add export to rails app
add swapping