a couple of fixes for smartproxy
initial support for compute_profiles