converted rel.js to funcjs arch