split into portal and client directory