fixes #36; generate profile