adding user directory functionality