pass around user and group id properly