#436 fixed: now rules document stored on media bucket