added head command and added permission for remotechests