added lib/profile.js