allow passing of 'profile' argument to constructor