Usind templete for profile fixes #3 fixes #5 fixes #6