first version of scripts to build rails port