initialization sequence in gen server working