added rails sync to libs