don't pass directory path to client, use prefix instead
fix: custom profile dir relative to profile dir