converted profile.js to funcjs arch