Added new version of translate_compile
moved code to sailor base